﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Configuration;

namespace Dynamic.Testing.Config
{
    public class CustomSection : ConfigurationSection
    {
        #region Properties
        [ConfigurationProperty("stringValue", IsRequired = true)]
        public string StringValue
        {
            get { return (string)base["stringValue"]; }
        }

        [ConfigurationProperty("boolValue")]
        public bool BoolValue
        {
            get { return (bool)base["boolValue"]; }
        }

        [ConfigurationProperty("timeSpanValue")]
        public TimeSpan TimeSpanValue
        {
            get { return (TimeSpan)base["timeSpanValue"]; }
        }
        #endregion

        [ConfigurationProperty("CustomElement")]
        public CustomElement Element
        {
            get { return (CustomElement)base["CustomElement"]; }
        }

    }
}
